/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
        'Noto Color Emoji';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: rgba(0, 0, 0, 0.85);
    background-color: #f0f2f5;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 链接样式 */
a {
    color: #1890ff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #40a9ff;
}

/* 卡片样式增强 */
.MuiCard-root {
    box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.05), 0 3px 6px 0 rgba(0, 0, 0, 0.04), 0 5px 12px 4px rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    transition: all 0.3s;
}

.MuiCard-root:hover {
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.08), 0 6px 16px 0 rgba(0, 0, 0, 0.06), 0 9px 28px 8px rgba(0, 0, 0, 0.04);
}

/* 按钮样式增强 */
.MuiButton-root {
    border-radius: 4px;
    transition: all 0.3s;
}

.MuiButton-contained {
    background: linear-gradient(to right, #1890ff, #40a9ff);
}

.MuiButton-contained:hover {
    background: linear-gradient(to right, #40a9ff, #69c0ff);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 表格样式增强 */
.MuiTableContainer-root {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.MuiTableHead-root .MuiTableCell-root {
    background-color: #f5f7fa;
    font-weight: 500;
}

/* 表单样式增强 */
.MuiFormLabel-root {
    font-weight: 500;
}

.MuiInputBase-root,
.MuiSelect-select {
    border-radius: 4px;
    transition: all 0.3s;
}

.MuiInputBase-root:hover,
.MuiSelect-select:hover {
    border-color: #40a9ff;
}

.MuiInputBase-root:focus,
.MuiSelect-select:focus {
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 菜单样式增强 */
.MuiListItem-root {
    transition: all 0.3s;
}

.MuiListItem-root.Mui-selected {
    background-color: #e6f7ff !important;
    font-weight: 500;
}

.MuiListItem-root:hover {
    background-color: #f0f7ff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .MuiCard-root {
        margin-bottom: 16px;
    }

    .MuiFormControl-root {
        margin-bottom: 16px;
    }
}
